//
//  AppDelegate.h
//  primApp
//
//  Created by Giuseppe on 15/11/13.
//
//

#import <UIKit/UIKit.h>
#import "Element.h"
#import <sqlite3.h>
#import <AVFoundation/AVFoundation.h>


@interface AppDelegate : UIResponder <UIApplicationDelegate> {
    
    UITabBarController *_tabBarController;
    sqlite3 *mySqliteDB;
}


@property (strong, nonatomic) UIWindow *window;
@property (nonatomic, strong) NSString *databasePath;


- (UIImage *)loadImage: (NSString*)filename;
- (void)saveImage: (UIImage*)image WithName:(NSString*) filename;
- (void) initDatabase;
- (NSArray *) getElementsList;
- (BOOL) saveElement:(Element *) myElement;
- (BOOL) deleteElement:(Element *)element;


@end
